package www.xpu.edu.app;

import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class Activity_change extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_change);
        ActionBar actionBar = getSupportActionBar();
        if (actionBar != null) {
            actionBar.hide();
        }
        //我要招聘
        final Button button1=findViewById(R.id.change_b1);
        //我要求职
        final Button button2=findViewById(R.id.change_b2);
        //跳转到填写个人信息的Activity，之后再跳转到findjob
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(Activity_change.this,"点击了我要招聘按钮",Toast.LENGTH_SHORT).show();
                startActivity(new Intent(Activity_change.this,Activity_job.class));
            }
        });
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(Activity_change.this,"点击了我要求职按钮",Toast.LENGTH_SHORT).show();
                startActivity(new Intent(Activity_change.this,Activity_student.class));
            }
        });
        Intent intent=getIntent();
       //Toast.makeText(Activity_change.this,intent.getStringExtra("data"),Toast.LENGTH_SHORT).show();
    }
}
